package com.kly.user.db.dao;

import com.fqgj.common.base.BaseMapper;
import com.kly.user.db.entity.UserAccessEntity;
import com.kly.user.db.entity.UserAccountsEntity;

import java.util.List;
import java.util.Map;

/**
 * User: yujianfu
 * Date: 2023-05-22
 * Time: 10:46:07.398
 */

public interface UserAccountsDao extends BaseMapper<UserAccountsEntity> {

    UserAccountsEntity selectByAccount(Map<String, Object> map);

    List<UserAccountsEntity> listByAccount(Map<String, Object> map);

    UserAccountsEntity selectByAccountByEmail(Map<String, Object> map);

    void deleteByUserCode(Map<String, Object> map);

    void removeByUserCode(String userCode);


    List<UserAccountsEntity> getByUserCodes(List<String> useCodes);

    public UserAccountsEntity getByUserCode(String useCode);

    Integer updateByPrimaryKey(UserAccountsEntity userAccountsEntity);
}